package com.fatdetection.demo.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fatdetection.demo.bean.Admin;

import java.util.List;

public interface AdminService {
     Page<Admin> selectPage(Integer current, Integer size);
     boolean updatePassword(String oldPwd, String newPwd, String username);
     int registerAdmin(Admin admin);//管理员注册

     int delAdmin(String username);//删除管理员

     int updateAdmin(Admin admin);//更新管理员信息

     Admin login(String username, String password);

     List<Admin> findAll();//查询所有管理员

     Admin findAdminByusername(String username);//根据用户名查询

     List<Admin> findAdminByNickname(String nickname);//根据昵称查询

}
